package edu.zqu.instructionalMatters.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.zqu.instructionalMatters.project.entity.CurriculumAssist;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author 何文东
 * @Date 2020-07-03
 * @Description: 课表-助教 - Mapper 接口
 * @Version 1.0
 */
public interface CurriculumAssistMapper extends BaseMapper<CurriculumAssist> {
    @Select("<script>" + "select * from curriculum_assist where college_id = #{collegeId} " +
            " <if test = 'curriculumId != null'>" +
            " and curriculum_id = #{curriculumId}" +
            " </if>" +
            " <if test = 'assistId != null'>" +
            " and assist_id = #{assistId}" +
            " </if>" + "</script>")
    public List<CurriculumAssist> findAll(CurriculumAssist curriculumAssist);
}
